package com.humanresource.domain.po.clerkrecord;

import java.util.ArrayList;
import java.util.List;

public class ClerkbaseinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ClerkbaseinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andClerkidIsNull() {
            addCriterion("ClerkId is null");
            return (Criteria) this;
        }

        public Criteria andClerkidIsNotNull() {
            addCriterion("ClerkId is not null");
            return (Criteria) this;
        }

        public Criteria andClerkidEqualTo(Integer value) {
            addCriterion("ClerkId =", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotEqualTo(Integer value) {
            addCriterion("ClerkId <>", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidGreaterThan(Integer value) {
            addCriterion("ClerkId >", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ClerkId >=", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidLessThan(Integer value) {
            addCriterion("ClerkId <", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidLessThanOrEqualTo(Integer value) {
            addCriterion("ClerkId <=", value, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidIn(List<Integer> values) {
            addCriterion("ClerkId in", values, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotIn(List<Integer> values) {
            addCriterion("ClerkId not in", values, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidBetween(Integer value1, Integer value2) {
            addCriterion("ClerkId between", value1, value2, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerkidNotBetween(Integer value1, Integer value2) {
            addCriterion("ClerkId not between", value1, value2, "clerkid");
            return (Criteria) this;
        }

        public Criteria andClerknameIsNull() {
            addCriterion("ClerkName is null");
            return (Criteria) this;
        }

        public Criteria andClerknameIsNotNull() {
            addCriterion("ClerkName is not null");
            return (Criteria) this;
        }

        public Criteria andClerknameEqualTo(String value) {
            addCriterion("ClerkName =", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameNotEqualTo(String value) {
            addCriterion("ClerkName <>", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameGreaterThan(String value) {
            addCriterion("ClerkName >", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameGreaterThanOrEqualTo(String value) {
            addCriterion("ClerkName >=", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameLessThan(String value) {
            addCriterion("ClerkName <", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameLessThanOrEqualTo(String value) {
            addCriterion("ClerkName <=", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameLike(String value) {
            addCriterion("ClerkName like", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameNotLike(String value) {
            addCriterion("ClerkName not like", value, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameIn(List<String> values) {
            addCriterion("ClerkName in", values, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameNotIn(List<String> values) {
            addCriterion("ClerkName not in", values, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameBetween(String value1, String value2) {
            addCriterion("ClerkName between", value1, value2, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerknameNotBetween(String value1, String value2) {
            addCriterion("ClerkName not between", value1, value2, "clerkname");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordIsNull() {
            addCriterion("ClerkPassword is null");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordIsNotNull() {
            addCriterion("ClerkPassword is not null");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordEqualTo(String value) {
            addCriterion("ClerkPassword =", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordNotEqualTo(String value) {
            addCriterion("ClerkPassword <>", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordGreaterThan(String value) {
            addCriterion("ClerkPassword >", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("ClerkPassword >=", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordLessThan(String value) {
            addCriterion("ClerkPassword <", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordLessThanOrEqualTo(String value) {
            addCriterion("ClerkPassword <=", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordLike(String value) {
            addCriterion("ClerkPassword like", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordNotLike(String value) {
            addCriterion("ClerkPassword not like", value, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordIn(List<String> values) {
            addCriterion("ClerkPassword in", values, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordNotIn(List<String> values) {
            addCriterion("ClerkPassword not in", values, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordBetween(String value1, String value2) {
            addCriterion("ClerkPassword between", value1, value2, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerkpasswordNotBetween(String value1, String value2) {
            addCriterion("ClerkPassword not between", value1, value2, "clerkpassword");
            return (Criteria) this;
        }

        public Criteria andClerksexIsNull() {
            addCriterion("ClerkSex is null");
            return (Criteria) this;
        }

        public Criteria andClerksexIsNotNull() {
            addCriterion("ClerkSex is not null");
            return (Criteria) this;
        }

        public Criteria andClerksexEqualTo(String value) {
            addCriterion("ClerkSex =", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexNotEqualTo(String value) {
            addCriterion("ClerkSex <>", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexGreaterThan(String value) {
            addCriterion("ClerkSex >", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexGreaterThanOrEqualTo(String value) {
            addCriterion("ClerkSex >=", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexLessThan(String value) {
            addCriterion("ClerkSex <", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexLessThanOrEqualTo(String value) {
            addCriterion("ClerkSex <=", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexLike(String value) {
            addCriterion("ClerkSex like", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexNotLike(String value) {
            addCriterion("ClerkSex not like", value, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexIn(List<String> values) {
            addCriterion("ClerkSex in", values, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexNotIn(List<String> values) {
            addCriterion("ClerkSex not in", values, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexBetween(String value1, String value2) {
            addCriterion("ClerkSex between", value1, value2, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerksexNotBetween(String value1, String value2) {
            addCriterion("ClerkSex not between", value1, value2, "clerksex");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathIsNull() {
            addCriterion("ClerkPhotoPath is null");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathIsNotNull() {
            addCriterion("ClerkPhotoPath is not null");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathEqualTo(String value) {
            addCriterion("ClerkPhotoPath =", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathNotEqualTo(String value) {
            addCriterion("ClerkPhotoPath <>", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathGreaterThan(String value) {
            addCriterion("ClerkPhotoPath >", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathGreaterThanOrEqualTo(String value) {
            addCriterion("ClerkPhotoPath >=", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathLessThan(String value) {
            addCriterion("ClerkPhotoPath <", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathLessThanOrEqualTo(String value) {
            addCriterion("ClerkPhotoPath <=", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathLike(String value) {
            addCriterion("ClerkPhotoPath like", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathNotLike(String value) {
            addCriterion("ClerkPhotoPath not like", value, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathIn(List<String> values) {
            addCriterion("ClerkPhotoPath in", values, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathNotIn(List<String> values) {
            addCriterion("ClerkPhotoPath not in", values, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathBetween(String value1, String value2) {
            addCriterion("ClerkPhotoPath between", value1, value2, "clerkphotopath");
            return (Criteria) this;
        }

        public Criteria andClerkphotopathNotBetween(String value1, String value2) {
            addCriterion("ClerkPhotoPath not between", value1, value2, "clerkphotopath");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}